﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RuleCode.Table;

namespace map.taobao
{
    public partial class _default : System.Web.UI.Page
    {
        /// <summary>
        /// 处理激活脚本
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {                           
            base.OnInit(e);        

            string ScriptTag =
            "<script type=\"text/javascript\">initialize();</script>"
            ;

            ClientScript.RegisterStartupScript(GetType(), "bodyevent", ScriptTag);
        }



        protected void Page_Load(object sender, EventArgs e)
        {
            cbuser.dealcookie();
            AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxFunction));
        }

        protected void Button_search_Click(object sender, EventArgs e)
        {
            //cbuser u = cbuser.Find("cbuserid = '" + AliApi.appUserId + "'");
            //u.taobaolong
             
            ////MessageBox.Show(this.UpdatePanel1, "aa");
            //cn.theosoft.www.TheoService TS = new map.cn.theosoft.www.TheoService(); ///
            //string myip = zfunction.IPAddress;
            ////myip = "211.103.140.119";
            //string address = TS.GetAddress(myip);
            //address = this.TextBox_key.Text;
            //address = zfunction.shortAddress(address);
            //string ScriptTag =
            //"showAddress('" + address + "')"
            //;
            ////string ScriptTag =
            ////"<script type=\"text/javascript\">showAddress('" + address + "'); return false;</script>"
            ////;
            //ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "zshowAddress", ScriptTag, true);

        }

    }
}
